/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package spasticinvadoors;

/**
 *
 * @author Bertil
 */
public class Alien extends Sprite{
    private boolean direction = true;

    public boolean getDirection() {
        return direction;
    }

    public void setDirection(boolean direction) {
        this.direction = direction;
    }

    public Alien(int x, int y) {
        super("Alien", x, y, 1);
    }

   public boolean atBorder(){
        if(position.getX() <= 1 || position.getX() >= 640 - 24){
            return true;

        }
       return false;
   }

   
}
